package vn.lumi.smarthome.network;

import android.content.Context;

public abstract class HCMsg extends NetMessage{
	
	Context mContext;
	
	public HCMsg(int cmd_id, int Msg_id){
		super(cmd_id, Msg_id);
	}
	public HCMsg(int cmd_id, int Msg_id, int len){
		super(cmd_id, Msg_id, len);
	}
	
	//extract info from input byte array
	public abstract void parseMessage(byte[] input, int length);
	
	public void setContext(Context context){
		mContext = context;
	}
	
	public abstract void doWhenReceived(Context context);
	
}
